﻿@model EditorialProyectos.Website.Models.ProjectViewModel

<h2>Crear proyecto</h2>

<div class="row action-bar">
    @Action.Back()
</div>

<div class="row" data-bind="with: Entity">
    @using (Html.BeginForm("Create", "Project", FormMethod.Post, new { id = "ProjectCreate" }))
    {
        <div class="row">
            <div class="col-md-6 create">
                @Html.Partial("FieldsPartial", Model)
            </div>
        </div>
        <div class="separator-small"></div>
        <div class="row">
            <div class="col-md-12">
                <h2>Vista Previa</h2>
                <div class="form-group">
                    @TextEditor.Result("resultContainerCreate")
                </div>

                @Html.LocalizedLabelFor(model => model.Entity.Html)
                @TextEditor.Editor("editorContainerCreate", "TextEditorCreate")
            </div>
        </div>

        <button data-bind="click: $root.Create" type="submit" class="btn btn-action btn-full-width">@Html.LocalizedAction("Create")</button>
    }
</div>
